// 封装存取方法 
// 存
function setUserInfoKey (userInfo) {
    return localStorage.setItem('user_info', JSON.stringify(userInfo))
}

// 取
function getUserInfoKey () {
    return localStorage.getItem('user_info')
}

// 删
function clearUserInfoKey () {
    return localStorage.removeItem('user_info')
}

export {
    setUserInfoKey,
    getUserInfoKey,
    clearUserInfoKey
}
